gtkwindow: Ensure to revert focus to a parent on hide()
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 1 Oct 2020 14:54:10 +0000 (16:54 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 6 Oct 2020 01:29:13 +0000 (03:29 +0200)
commit38547120b2ea2cb1c525a2d015051b09489ba099
treeda85cbc4705b50115c14d7cb85cff041267eb38c
parentaaab461c2701b6c1e373a3302e902edb9a88371d
gtkwindow: Ensure to revert focus to a parent on hide()

When a widget is hidden, check harder for the keyboard focus being
contained in that widget, in order to reset it. Portions of the
focus child hierarchy may be outdated at the time, so it is more
reliable to check GtkRoot::focus (i.e. the property we intend to
update here).

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3214
gtk/gtkwindow.c